//
//  AppController.h
//  iLogColor
//
//  Copyright 2009 Reinier Haasjes 
//  
//  This file is covered by the MIT License.
//  See LICENSE for more information.
//

#import <Cocoa/Cocoa.h>

@interface AppController : NSObject
{
    IBOutlet NSTextView *logOutput;
    IBOutlet NSWindow *window;
	IBOutlet NSWindow *prefsWindow;
	IBOutlet NSScrollView *scrollView;
	BOOL taskIsRunning;
	BOOL mouseOver;
	NSTask *logTask;
	NSThread *copyThread;
	NSPipe *logPipe;
	NSFileHandle *logHandle;
    NSString *logString;
}

- (void)checkDefaults;
- (void)stopTask;
- (void)startTask;
- (void)setBackground;
- (void)setTitle;

- (void)mouseEntered:(NSEvent *)theEvent;
- (void)mouseExited:(NSEvent *)theEvent;

- (BOOL)taskIsRunning;
- (void)setTaskIsRunning:(BOOL)isRunning;

- (IBAction)connect:(id)sender;
- (IBAction)disconnect:(id)sender;

@property BOOL mouseOver;

@end
